/**
 * Created by 张强 on 2018/1/30.
 */
//获取应用实例
let app = getApp();
Component({
    properties: {
        tagAction: {
            type: Number
        },
        tagData: {
            type: Array
        }
    },
    data: {
    },
    methods: {
        //选择
        handleIndexChange(e) {
            let myEventDetail = {
                active: e.target.dataset.index
            };// detail对象，提供给事件监听函数
            let myEventOption = {}; // 触发事件的选项
            this.triggerEvent('checked', myEventDetail, myEventOption)
        }
    },
});